package com.guomei.configs;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * 微信支付配置
 */
@Configuration
@Slf4j
public class WechatPayConfig {


    @Value("${wechat.pay.appId}")
    private String appId;

    @Value("${wechat.pay.mchId}")
    private String mchId;

    @Value("${wechat.pay.mchSerialNo}")
    private String mchSerialNo;

    @Value("${wechat.pay.privateKeyPath}")
    private String privateKeyPath;

    @Value("${wechat.pay.apiV3Key}")
    private String apiV3Key;

    @Value("${wechat.pay.notifyUrl}")
    private String notifyUrl;

    // Getter 方法

    public String getAppId() {
        return appId;
    }

    public String getMchId() {
        return mchId;
    }

    public String getMchSerialNo() {
        return mchSerialNo;
    }

    public String getPrivateKeyPath() {
        return privateKeyPath;
    }

    public String getApiV3Key() {
        return apiV3Key;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }
}